package com.dragonsoftbravo.sqlbuilder.sql.sub;


import com.dragonsoftbravo.sqlbuilder.SqlContext;

public class SqlOrderByConst extends OrderByConst {

    public SqlOrderByConst(StringBuilder sqlBuilder) {
        super(sqlBuilder);
    }

    @Override
    public OrderByConst desc(String column) {
        sqlBuilder.append(" ").append(SqlContext.getColumn(column)).append(" DESC,");
        return new SqlOrderByConst(sqlBuilder);
    }

    @Override
    public OrderByConst asc(String column) {
        sqlBuilder.append(" ").append(SqlContext.getColumn(column)).append(" ASC,");
        return new SqlOrderByConst(sqlBuilder);
    }
}
